import {Tools} from 'weaver-mobile';

/**
 * 评分页面详情查看
 */
export const accessView = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/accessView',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 反馈信息操作
 */
export const accessViewFb = params => {
    let options = {
        method: 'POST',
        url: '/api/workrelate/performance/accessViewFb',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 操作日志信息操作
 */
export const accessViewLog = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/accessViewLog',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 操作信息操作
 */
export const accessViewOperation = params => {
    let options = {
        method: 'POST',
        url: '/api/workrelate/performance/accessViewOperation',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 附件赋权
 */
export const viewDocFiled = params => {
    let options = {
        method: 'POST',
        url: '/api/workrelate/common/viewDocFiled',
        params: {...params}
    };
    return Tools.callApi(options);
};